import React, { useContext } from 'react'
import {UserContext,ThemeContext} from "../App"

export default function ContextHookDemo() {
  const user = useContext(UserContext);
  const theme = useContext(ThemeContext)
  console.log(user,theme);

  return (
    <div>
      <h2>{user.name}</h2>
      <h2>{user.age}</h2>
      
    </div>
  )
}
